﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000365 RID: 869
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CurPetChangedScNotify : IMessage<CurPetChangedScNotify>, IMessage, IEquatable<CurPetChangedScNotify>, IDeepCloneable<CurPetChangedScNotify>, IBufferMessage
	{
		// Token: 0x17000B45 RID: 2885
		// (get) Token: 0x06002708 RID: 9992 RVA: 0x0006D858 File Offset: 0x0006BA58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CurPetChangedScNotify> Parser
		{
			get
			{
				return CurPetChangedScNotify._parser;
			}
		}

		// Token: 0x17000B46 RID: 2886
		// (get) Token: 0x06002709 RID: 9993 RVA: 0x0006D85F File Offset: 0x0006BA5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CurPetChangedScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B47 RID: 2887
		// (get) Token: 0x0600270A RID: 9994 RVA: 0x0006D871 File Offset: 0x0006BA71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CurPetChangedScNotify.Descriptor;
			}
		}

		// Token: 0x0600270B RID: 9995 RVA: 0x0006D878 File Offset: 0x0006BA78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurPetChangedScNotify()
		{
		}

		// Token: 0x0600270C RID: 9996 RVA: 0x0006D880 File Offset: 0x0006BA80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurPetChangedScNotify(CurPetChangedScNotify other) : this()
		{
			this.curPetId_ = other.curPetId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600270D RID: 9997 RVA: 0x0006D8A5 File Offset: 0x0006BAA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurPetChangedScNotify Clone()
		{
			return new CurPetChangedScNotify(this);
		}

		// Token: 0x17000B48 RID: 2888
		// (get) Token: 0x0600270E RID: 9998 RVA: 0x0006D8AD File Offset: 0x0006BAAD
		// (set) Token: 0x0600270F RID: 9999 RVA: 0x0006D8B5 File Offset: 0x0006BAB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurPetId
		{
			get
			{
				return this.curPetId_;
			}
			set
			{
				this.curPetId_ = value;
			}
		}

		// Token: 0x06002710 RID: 10000 RVA: 0x0006D8BE File Offset: 0x0006BABE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CurPetChangedScNotify);
		}

		// Token: 0x06002711 RID: 10001 RVA: 0x0006D8CC File Offset: 0x0006BACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CurPetChangedScNotify other)
		{
			return other != null && (other == this || (this.CurPetId == other.CurPetId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002712 RID: 10002 RVA: 0x0006D8FC File Offset: 0x0006BAFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurPetId != 0U)
			{
				num ^= this.CurPetId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002713 RID: 10003 RVA: 0x0006D93B File Offset: 0x0006BB3B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002714 RID: 10004 RVA: 0x0006D943 File Offset: 0x0006BB43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002715 RID: 10005 RVA: 0x0006D94C File Offset: 0x0006BB4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurPetId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.CurPetId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002716 RID: 10006 RVA: 0x0006D980 File Offset: 0x0006BB80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurPetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurPetId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002717 RID: 10007 RVA: 0x0006D9BE File Offset: 0x0006BBBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CurPetChangedScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurPetId != 0U)
			{
				this.CurPetId = other.CurPetId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002718 RID: 10008 RVA: 0x0006D9EF File Offset: 0x0006BBEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002719 RID: 10009 RVA: 0x0006D9F8 File Offset: 0x0006BBF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.CurPetId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000FAD RID: 4013
		private static readonly MessageParser<CurPetChangedScNotify> _parser = new MessageParser<CurPetChangedScNotify>(() => new CurPetChangedScNotify());

		// Token: 0x04000FAE RID: 4014
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000FAF RID: 4015
		public const int CurPetIdFieldNumber = 13;

		// Token: 0x04000FB0 RID: 4016
		private uint curPetId_;
	}
}
